package com.itawei.static_.demo2;

import java.lang.reflect.Array;
import java.util.ArrayList;

/**
 * 测试类
 */
public class StudentTest {
    public static void main(String[] args) {
    ArrayList<Student> list = new ArrayList<>();
    Student s1 = new Student("小王",18,"男");
    Student s2 = new Student("小啊啊",79,"女");
    Student s3 = new Student("小是是",59,"男");
    list.add(s1);
    list.add(s2);
    list.add(s3);

        int maxAge = StudentUtil.getMaxAgeStudent(list);
        System.out.println(maxAge);
    }
}
